package com.test.exception.other;


/**
 * 状态码枚举
 */
public enum ResultCode {
    SUCCESS(200, "成功"),

    SERVER_ERROR(500100, "服务端口异常"),

    BIND_ERROR(400101, "参数校验异常");

    private Integer code;
    private String msg;

    ResultCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
